home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1999 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'kpMatch.pas' rev: 5.00
-
- #ifndef kpMatchHPP
- #define kpMatchHPP
-
- #pragma delphiheader begin
- #pragma option push -w-
- #pragma option push -Vx
- #include <SysUtils.hpp> // Pascal unit
- #include <SysInit.hpp> // Pascal unit
- #include <System.hpp> // Pascal unit
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Kpmatch
- {
- //-- type declarations -------------------------------------------------------
- typedef Set<char, 0, 255> TCharSet;
-
- //-- var, const, procedure ---------------------------------------------------
- static const Shortint MATCH_PATTERN = 0x6;
- static const Shortint MATCH_LITERAL = 0x5;
- static const Shortint MATCH_RANGE = 0x4;
- static const Shortint MATCH_ABORT = 0x3;
- static const Shortint MATCH_END = 0x2;
- static const Shortint MATCH_VALID = 0x1;
- static const Shortint PATTERN_VALID = 0x0;
- static const Shortint PATTERN_ESC = 0xffffffff;
- static const Shortint PATTERN_RANGE = 0xfffffffe;
- static const Shortint PATTERN_CLOSE = 0xfffffffd;
- static const Shortint PATTERN_EMPTY = 0xfffffffc;
- static const char MATCH_CHAR_SINGLE = '\x3f';
- static const char MATCH_CHAR_KLEENE_CLOSURE = '\x2a';
- static const char MATCH_CHAR_RANGE_OPEN = '\x3c';
- static const char MATCH_CHAR_RANGE = '\x2d';
- static const char MATCH_CHAR_RANGE_CLOSE = '\x3e';
- static const char MATCH_CHAR_CARAT_NEGATE = '\x5e';
- static const char MATCH_CHAR_EXCLAMATION_NEGATE = '\x21';
- extern PACKAGE bool __fastcall IsMatch(AnsiString pattern, AnsiString text);
- extern PACKAGE int __fastcall matche(AnsiString pattern, AnsiString text);
- extern PACKAGE int __fastcall match_after_star(AnsiString pattern, AnsiString text);
- extern PACKAGE bool __fastcall is_pattern(AnsiString pattern);
- extern PACKAGE bool __fastcall is_valid_pattern(AnsiString pattern, int &error_type);
-
- } /* namespace Kpmatch */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Kpmatch;
- #endif
- #pragma option pop // -w-
- #pragma option pop // -Vx
-
- #pragma delphiheader end.
- //-- end unit ----------------------------------------------------------------
- #endif // kpMatch
-